<?php
class admin_controller extends controller
{

    public function __construct()
    {
        $my = bone::get_admin();
        if ($my->id==0)
        {
            $action = request('action');
            if (substr($action, strrpos($action, '.'), 6) == '.ajax_')
            {
                $this->set_ajax('status', 1024);
                $this->set_ajax('description', '登陆超时');
                $this->ajax();
            }
            else
                $this->redirect('./?action=user.access.login', '登陆超时', 'error');
        }
    
    }

}
?>